import { _decorator, Component, Node, Label, Button, director } from 'cc';
import { UserMgr } from './UserMgr';
const { ccclass, property } = _decorator;

@ccclass('TableInfoItem')
export class TableInfoItem extends Component {
    @property(Label)
    lblName: Label;

    @property(Label)
    lblTableId: Label;

    @property(Label)
    lblPlayerNum: Label;

    @property(Label)
    lblSpectatorNum: Label;

    @property(Button)
    btnEnter: Button;

    start() {

    }

    onBtnEnterClicked() {
        UserMgr.inst.doEnterSubWorld(this.lblTableId.string);
    }

    update(deltaTime: number) {

    }
}

